#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    double a,b,c,d,e;
    for(int i=0;i<5;i++){
        cin>>a>>b>>c>>d>>e;
        printf("%.1lf %.1lf %.1lf %.1lf %.1lf %.1lf\n",a,b,c,d,e,a+b+c+d+e);
    }
    return 0;
}
